package com.zerox.service.impl;

import com.zerox.mapper.SysRoleMapper;
import com.zerox.pojo.sysRole;
import com.zerox.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleMapper sysRoleMapper;


    public List<sysRole> list(Integer page, Integer limit) {
        return sysRoleMapper.list(page, limit);
    }

    public sysRole selectByrole_id(Integer role_id) {
        return sysRoleMapper.selectByrole_id(role_id);
    }

    public int update(sysRole sysRole) {
        return sysRoleMapper.update(sysRole);
    }

    public int delete(Integer role_id) {
        return sysRoleMapper.delete(role_id);
    }

    public int add(sysRole sysRole) {
        return sysRoleMapper.add(sysRole);
    }
}
